package com.yonyou.cms.epc.mapper.graphic;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cms.epc.client.entity.graphic.GraphicAssemblyInfoEmp;
import com.yonyou.cms.epc.client.entity.graphic.GraphicAssemblyInfoPO;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xh
 * @since 2022-06-09
 */
public interface GraphicAssemblyInfoMapper extends SuperMapper<GraphicAssemblyInfoPO> {

    int updateByPrimaryKeySelective(GraphicAssemblyInfoPO entity);

    boolean deleteBatch(Integer id);

    List<Map<String, Object>> selectgraphicAndAssemblyInfoPage(Page page, @Param("params") Map<String, Object> queryCondition);

    List<Map<String, Object>> selectpartinfoPage(Page page, @Param("params") Map<String, Object> queryCondition);

    List<GraphicAssemblyInfoPO> selectListPo(@Param("params") Map<String, Object> queryCondition);

    int deleteBatchModelSystem(List<GraphicAssemblyInfoPO> modelSystemList );

    int insertBatch(List<GraphicAssemblyInfoPO> graphicAssemblyInfoPoList);

    int updateGraphicIds(GraphicAssemblyInfoPO graphicAssemblyInfoPo);

    List<Map<String, Object>> selectPartListBySql(@Param("params") Map<String, Object> queryCondition);

    List<Map<String, Object>> selectNotPartListBySql(@Param("params") Map<String, Object> queryCondition,@Param("list") List<GraphicAssemblyInfoPO> list);

    boolean deleteBatchEmp(@Param("createdBy")  Long id);

    int insertBatchEmp(List<GraphicAssemblyInfoEmp> graphicAssemblyInfoPoList);

    int updateNotPartList();

    List<GraphicAssemblyInfoEmp> selectEmp();

    int insertAssembly(@Param("createdBy")  String createdBy);

    int deleteBatchModelSystemEmp(List<GraphicAssemblyInfoEmp> modelSystemList );

}
